| grep ' Uwsgi ' 's command combination to find Uwsgi's town
Grep
grep can be used to find matching results in a file or stream, such as grep ' abc ' **/**.py find all files containing ' ABC ' strings in the current directory and print out the results
Xargs
Passes the execution result of the previous command as an argument to the latter command. Here, we pass all the branch names with the ' dev ' character to
Use the git branch-a command to view all local and remote branches (git branch-r can view only remote branches)Found that many of the branches that have been deleted in the remote repository are still visible locally.
$ git
One, view remote branch
Use the following git command to view all remote branches:
Git branch-r1
Two, pull remote branch and create local branch
Method One
Use the following command:
Master Branch and Dev branch already on GitHubOn a localgit checkout-b dev new and switch to local dev branchGit pull Origin dev local branch associated with remote branch===========================================================
When clone finishes the repository and switches to the development branch, a hint appears after using Git pull-r to pull and merge branches:$ git pull-rFrom Ssh://192.168.1.226:29418/ethank-serverBc86d14. B72fc88 Dev-and Origin/devThere is no tracking information for the current branch.Please specify which branch the w
git Delete local branch error occurred
Deleting a local branch often occurs in the following ways: error:the branch ' testing ' is not fully merged.
With git
(1) Download first
git clone URL
(2) Switch to branch Jarsample
git checkout Jarsample
(3) Download the code from the master branch of the remote Origin repository to the local Origin jarsample
Git fetch Origin Jarsample
(
1. View Remote BranchGit branch-rOrigin/master2. View local Branch*masterNote : The local branch where the current is located is indicated by *3. View local and remote branchesGit branch
In Android Studio, how does Git update the local remote branch list ?, Androidgit
For example, if your colleague adds branch xxx in Git's remote branch, but you find that when you view the existing branch in Android Studio, you ca
There are 2 commands in git that get the latest version from the remote branch to the Local:
git fetch: The equivalent of getting the latest version from remote to local, not automatically merge
Git fetch origin master
Sometimes you need to get the code for a remote branch from a remote git server, and the command is git fetch Origin remote-branch:local-branch, which is easier to forget, especially recorded.1. View Remote repositoriesGit remote-voriginhttp://git.dev.qianmi.com/elifeapp/weidian.git (Fetch) Originhttp://git.dev.qianmi.
Sometimes you need to get the code for a remote branch from a remote git server, and the command is GIT fetch Origin remote-branch:local-branch, which is easier to forget, especially recorded.
1. View Remote repositories
git Remote-v
Origin http://git.dev.qianmi.com/elif
, with the git status view workspace, it's clean (unless you have a file that's not managed by git), so you can safely create a branch to fix the bug.First determine which branch to fix the bug on, assuming that you need to master fix it on the branch, from master creating a
Local code merge to Dev branchSubmit in local branchgit Add.Git commit-m "Playbuy"Switch to Dev Branchgit checkout DevGit pullMerging branchesGit merge local (dev merge to the HF branch, the need to add-noff parameters, is to prevent first to merge the policy, do not need the next step
to the last commit object. It will automatically move forward in each commit operation.
The master branch of Git is not a special branch. It is no different from the other branches at all. Almost every warehouse has a master branch because the git init command c
Branch (branches) refers to the development of the main line of separation, do further development without affecting the original main line.Git does not store a series of change sets (changeset), but rather a series of snapshots. When you perform a commit, Git stores a Commit object that contains a pointer to a snapshot of what you currently need to commit.The function of the master
Git branch management and Git branch managementGit branch management overview
Almost every version control system supports branches in some form. Using a branch means you can separate it from the Development Main Line and continue
.
With git checkout test, we can switch to the test branch.
#git checkout testSwitched to branch 'test'#git branch master*test
Through the git checkout-B xx command, we can create xx
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.